package com.free.chat.service;

import com.baomidou.mybatisplus.solon.service.IService;
import com.free.chat.entity.ApiResult;
import com.free.chat.entity.dto.TopicCollectDTO;
import com.free.chat.entity.dto.TopicDTO;
import com.free.chat.entity.model.Topic;

public interface TopicService extends IService<Topic> {

    /**
     * @Author: 朝花不迟暮
     * @Description: 根据用户查询对应的帖子列表
     * @Date: 2022/11/26
     */
    ApiResult getTopicListByUser(TopicDTO topicDTO);

    /**
     * @Author: 朝花不迟暮
     * @Description: 收藏帖子
     * @Date: 2022/11/28
     */
    ApiResult collectTopic(TopicCollectDTO topicCollectDTO);
}
